<html>
<head>
	<?php $this->load->view('config/head');?>
	<style> 
		.shadowbox{
			box-shadow: 1px 1px 15px #888888;
			margin-top: 150px;
			margin-left: 100px;
		}
	</style>
</head>
<body>
	<div class="row">
		<div class="span4" ></div>
		<div class="span9" >
			
		
			<table class="shadowbox">
				<tr>
					<td style="padding-left:8px;padding-right:8px;">
						<h4>Please Login</h4>
						<hr>
						<?php $msg = $this->session->flashdata('error');?>
						<?php if ($msg):?>
							<div class="alert alert-error" style="text-align:center">
								Maaf, Username atau password salah!
							</div>
						<?php endif?>
					</td>
				</tr>
				<tr>
					<td style="padding-top:8px;padding-right:110px">
						
						<form method="post" action="<?php echo site_url(); ?>admin/validate" class="form-horizontal">
						  <div class="control-group">
							<label class="control-label" for="username" >Name</label>
							<div class="controls">
							  <input type="text" name="username" value="<?php echo $this->session->flashdata('username');?>" />
							</div>
						  </div>
						  <div class="control-group">
							<label class="control-label" for="password">Password</label>
							<div class="controls">
							  <input type="password" name="password"/>
							</div>
						  </div>
						  <div class="control-group">
							<div class="controls">
								<input type="submit" value="Sign in" class="btn"/>
							</div>
						  </div>
						</form>
					</td>
				</tr>
			</table>
				
			</div>
		</div>
		<div class="span4" ></div>
	</div>
</body>
</html>